package com.gxa.core.recycling.util;

/**
 * @author R
 * @data 2021-09-01 14:52
 */
public class StringUtil {
    public static Boolean isEmpty(String context){
        if (context == null || context.equals("")){
            return true;
        }
        return false;
    }
    /**
     * 判断是否是合法手机号
     * @param phone
     * @return
     */
    public static boolean isPhoneNumber(String phone){
        boolean bool =  phone.matches("^1(3\\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$");
        return bool;
    }
}
